package com.otherTest.keyWords.ifKeyWord;

import org.junit.Test;

/**
 * @author Conceit
 * @version 1.0, 2017/1/18
 */
public class TestIf {
    @Test
    public void testIf() {
        int value=36;
        if(value<35){
            System.out.println("小于35");
        }else if (value > 35 && value < 37){
            System.out.println("大于35");
        }


    }

    @Test
    public void testIf2(){
        int value=10;
        if(value>1){
            System.out.println(">1");
        }
        if(value>9){
            System.out.println(">9");
        }
        if(value==10){
            System.out.println("==10");
        }
        if(value>20){
            System.out.println(">20");
        }
        System.out.println("执行完毕！");
    }
}
